/**
 * @Author: ChenYu ycyplus@gmail.com
 * @Date: 2025-01-09
 * @Description: C_Tabbar 组件样式 - 玻璃风设计
 * Copyright (c) 2025 by CHENY, All Rights Reserved 😎.
 */

.c-tabbar {
  position: relative;
  z-index: 1000;

  &.is-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

.tabbar-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.glass-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(40rpx);
  border-top: 1rpx solid rgba(255, 255, 255, 0.3);
}

.border-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2rpx;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.4) 20%,
    rgba(0, 212, 255, 0.8) 50%,
    rgba(0, 212, 255, 0.4) 80%,
    transparent 100%
  );
}

.tabbar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8rpx 20rpx 12rpx;
  min-height: 80rpx;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rpx 4rpx;
  transition: all 0.3s ease;

  &.is-active {
    transform: translateY(-2rpx);
  }
}

.active-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80rpx;
  height: 80rpx;
  pointer-events: none;
}

.glow-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(0, 212, 255, 0.08) 50%,
    transparent 100%
  );
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.icon-wrapper {
  position: relative;
  margin-bottom: 4rpx;
  z-index: 2;
}

.icon-bg {
  width: 56rpx;
  height: 56rpx;
  border-radius: 16rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1rpx solid rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;

  &.is-active {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 4rpx 16rpx rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
  }
}

// 自定义文字图标样式
.custom-text-icon {
  font-size: 28rpx;
  font-weight: bold;
  color: #8e8e93;
  transition: all 0.3s ease;

  &.is-active {
    color: #ffffff;
    font-size: 30rpx;
  }
}
.tab-label {
  font-size: 18rpx;
  color: #8e8e93;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  z-index: 2;

  &.is-active {
    color: #00d4ff;
    font-weight: 600;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}